<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>选择器的权重</title>
    <style>
        /* 嵌套越深权重越大 父名后加个空格 */
    .one{
        color: red;
    }
    div .wrap .one{
        color:green;

    }
    div .containner .wrap .one{

        color:yellow;
    }
    body .containner .wrap .one{

        color:pink;
    }
    </style>
</head>
<body>
    <div class="containner">

        <div class="wrap">

            <p class="one">nihaonihao</p>
        </div>
    </div>
</body>
</html>